<template>
<div class="hot-list border-bottom">
  <div class="hot-list-title">
    <img class="hot-title-img" src="https://imgs.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" alt="本周热门榜单">
    <span class="hot-title">本周热门榜单</span>
    <a href="#" class="hot-title-more">
      全部榜单 >
      <span></span>
    </a>
  </div>
  <ul class="hot-lists">
    <li class="hot-lists-item" v-for="item of hlist" :key="item.id">
      <div class="hot-list-imgcon image-ready">
        <img :src="item.imgUrl" :alt="item.title">
      </div>
      <div class="hot-list-tag" v-if="item.id == '1' || item.id == '2' || item.id == '3'">
        <img :src="item.imgTop">
      </div>
      <div class="hot-list-sight">{{ item.title }}</div>
      <div class="hot-list-price"><span class="hot-price">¥<em class="hot-price-num">{{ item.price }}</em></span>起</div>
    </li>
  </ul>
</div>
</template>

<script>
export default {
  name: 'HomeHotweek',
  props: {
    hlist: Array
  }
}
</script>

<style lang="stylus" scoped="scoped">
  .hot-list-title
    margin 20px 0
    img
      width 0.3rem
      height 0.3rem
      margin-left 0.2rem
    .hot-title
      display inline-block
      margin-left .08rem
      height .44rem
      color #212121
      font-size 0.32rem
      line-height 0.44rem
    .hot-title-more
      float right
      color #616161
      font-size 0.28rem
  .hot-lists
    padding 0 .24rem
    overflow-x scroll
    white-space nowrap
    .hot-lists-item
      position relative
      display inline-block
      padding 0.06rem 0 0.2rem
      width 2rem
      margin-right 0.2rem
      .hot-list-imgcon
        img
          width 100%
      .hot-list-tag
        position absolute
        top 0
        left 0
        img
          height 0.4rem
          width 0.84rem
      .hot-list-sight
        text-align center
        margin-top 0.12rem
      .hot-list-price
        text-align center
        margin-top 0.12rem
        span
          color #ff8300
</style>
